$(document).ready(function (){
	
	$("#payment-euro").keyup(function(){
		var euro=$("#payment-euro").attr("value");
		var ip = 0;
		var twtyH;
		var tenH;
		if(euro >= 20){
			twtyH = parseInt(euro/20);
			ip = ip + twtyH*550;
			euro = euro - 20*twtyH;
		}
		if(euro >= 10){
			tenH = parseInt(euro/10);
			ip = ip + tenH*280;
			euro = euro - 10*tenH;
		}
		ip = ip + euro*20;
		
	    $("#payment-intelligentpoint").attr("value",ip);
	});
	
	
});